#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
//#include<stdlib.h>
//#include <time.h>
int exchange(int *pa,int *pb)
{
    int c = 0;
    c = *pa;
    *pa = *pb;
    *pb = c;

    return  0;
}

int main()
{
    int a = 0,b = 0;
    scanf("%d %d", &a, &b);
    exchange(&a, &b);
    printf("%d %d ", a, b);
   
    return 0;
}